<!DOCTYPE html>
<html class="x-admin-sm">
  
  <head>
    <meta charset="UTF-8">
    <title></title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <link rel="stylesheet" href="./css/font.css">
    <link rel="stylesheet" href="./css/xadmin.css">
    <script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
    <script type="text/javascript" src="./lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="./js/xadmin.js"></script>
    <script type="text/javascript" src="./js/cookie.js"></script>
	
	<link href="css/bootstrap-theme.min.css" rel="stylesheet">
	<link href="css/bootstrap.min.css" rel="stylesheet">
	<script src="js/jquery-3.4.1.js" type="text/javascript" charset="utf-8"></script>
	<script src="command/Bootstrap/bootstrap-3.3.0/js/bootstrap.min.js"></script>
	<script src="command/bower_components/bootbox.min.js"></script>
	<script src="command/bower_components/bootstrap-select/js/bootstrap-select.js"></script>
	<script src="command/bower_components/bootstrap-switch/dist/js/bootstrap-switch.min.js"></script>
	<script src="command/bower_components/bootstrap-table/dist/bootstrap-table.min.js"></script>
	<script src="command/bower_components/bootstrap-table/dist/locale/bootstrap-table-zh-CN.js"></script>
	<script src="command/bower_components/moment/min/moment-with-locales.min.js"></script>
	
	<script type="application/javascript">
		$(function(){
			/* 新增按钮事件 */
			$("#btnNew").click(function(){
				$("#divData").modal();
			});
			$("#btnxg").click(function(){
				$("#divData-1").modal();
			});
			$("#btncx").click(function(){
				$("#divData-2").modal();
			});
		});
	</script>
  </head>
  
  <body>
	
	  <!-- 新增模态框处理 -->
	  <div class="modal fade" id="divData" tabindex="-1" role="dialog" aria-labelledby="myModelLable" aria-hidden="hidden">
	  		<div class="modal-dialog">
	  			<div class="modal-content">
	  				<!-- 模态标题 -->
	  				<div class="modal-header">
	  					<button type="button" class="close" data-dismiss="modal" aria-didden="true">关闭</button>
	  					<h4 class="modal-title" id="">详细信息</h4>
	  				</div>
	  				<!-- 主体表单 -->
	  				<div class="modal-body form-inline">
	  						<div class="form-group">
	  							<label class="control-label" for="">姓名</label>
	  							<input type="text" id="txtUsername" name="Datausername" maxlength="20" class="form-control">
	  						</div>
	  					</div>
	  					<div class="modal-body form-inline">
	  						<div class="form-group">
	  							<label class="control-label" for="">职务</label>
	  							<input type="text" id="xingbie" name="Dataxb" maxlength="20" class="form-control">
	  						</div>
	  					</div>
	  						<div class="modal-body form-inline">
	  							<div class="form-group">
	  								<label class="control-label" for="">科室</label>
	  								<input type="text" id="xingbie" name="Dataxb" maxlength="20" class="form-control">
	  							</div>
	  						</div>	
	  				<div class="modal-footer">
	  					<button type="button" id="btnsave" class="btn btn-info">保存</button>
	  				</div>
	  			</div>
	  		</div>
	  </div>
	  </div>
	   <!-- 修改模态框处理 -->
	  <div class="modal fade" id="divData-1" tabindex="-1" role="dialog" aria-labelledby="myModelLable" aria-hidden="hidden">
	  		<div class="modal-dialog">
	  			<div class="modal-content">
	  				<!-- 模态标题 -->
	  				<div class="modal-header">
	  					<button type="button" class="close" data-dismiss="modal" aria-didden="true">关闭</button>
	  					<h4 class="modal-title" id="">详细信息</h4>
	  				</div>
	  				<!-- 主体表单 -->
	  				<div class="modal-body form-inline">
	  						<div class="form-group">
	  							<label class="control-label" for="">姓  名</label>
	  							<input type="text" id="txtUsername" name="Datausername" maxlength="20" class="form-control">
	  						</div>
	  					</div>
	  					<div class="modal-body form-inline">
	  						<div class="form-group">
	  							<label class="control-label" for="">职务</label>
	  							<input type="text" id="xingbie" name="Dataxb" maxlength="20" class="form-control">
	  						</div>
	  					</div>
	  					<div class="modal-body form-inline">
	  						<div class="form-group">
	  							<label class="control-label" for="">科室</label>
	  							<input type="text" id="xingbie" name="Dataxb" maxlength="20" class="form-control">
	  						</div>
	  					</div>	
	  				<div class="modal-footer">
	  					<button type="button" id="btnsave" class="btn btn-info">修改</button>
	  				</div>
	  			</div>
	  		</div>
	  </div>
	  </div>
	  	 
	   <!-- 查询模态框处理 -->
	  <div class="modal fade" id="divData-2" tabindex="-1" role="dialog" aria-labelledby="myModelLable" aria-hidden="hidden">
	  		<div class="modal-dialog">
	  			<div class="modal-content">
	  				<!-- 模态标题 -->
	  				<div class="modal-header">
	  					<button type="button" class="close" data-dismiss="modal" aria-didden="true">关闭</button>
	  					<h4 class="modal-title" id="">详细信息</h4>
	  				</div>
	  				<!-- 主体表单 -->
	  				<div class="modal-body form-inline">
	  						<div class="form-group">
	  							<label class="control-label" for="">姓  名</label>
	  							<input type="text" id="txtUsername" name="Datausername" maxlength="20" class="form-control">
	  						</div>
	  					</div>
	  					<div class="modal-body form-inline">
	  						<div class="form-group">
	  							<label class="control-label" for="">科室</label>
	  							<input type="text" id="xingbie" name="Dataxb" maxlength="20" class="form-control">
	  						</div>
	  					</div>
	  				<div class="modal-footer">
	  					<button type="button" id="btnsave" class="btn btn-info">查询</button>
	  				</div>
	  			</div>
	  		</div>
	  </div>
	  </div>
    <div class="x-nav">
      <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" href="javascript:location.replace(location.href);" title="刷新">
        <i class="layui-icon" style="line-height:30px">ဂ</i></a>
    </div>
	 <div class="x-body">
	 <div class="layui-row">
	  <form class="layui-form layui-col-md12 x-so">
		  <label for="" class="control-label col-md-1" style="margin-left: 40px;">创建日期</label>
		  <div class="col-md-2">
	    <input class="layui-input form-control"  autocomplete="off" placeholder="开始日" name="start" id="start"></div>
		<div  class="col-md-2">
	    <input class="layui-input form-control"  autocomplete="off" placeholder="截止日" name="end" id="end"></div>
	  </form>
	</div>
    
	 <form class="form-horizontal" role="form">
	 	<div class="form-group">
	 		<label for="username" class="control-label col-md-1">姓名</label><!-- 创建标题 -->
	 		<div class="col-md-2">
	 			<input type="text" class="layui-input form-control" name="xm" id="username" value="" placeholder="姓名"><!-- 创建文本框 -->
	 		</div>
	 		<label for="num" class="control-label col-md-1">联系方式</label><!-- 创建标题 -->
	 		<div class="col-md-2">
	 			<input type="text" class="layui-input form-control" name="dianhua" id="num" value="" placeholder="联系方式"><!-- 创建文本框 -->
	 		</div>
	 		<label for="zhuangtai" class="control-label col-md-1">身份证号</label><!-- 创建标题 -->
	 		<div class="col-md-2">
	 			<input type="text" class="layui-input form-control" name="zt" id="zhungtai" value="" placeholder="身份证号"><!-- 创建文本框 -->
	 		</div>
	 	
	 			<button class="layui-btn"  lay-submit="" lay-fiter="sreach"><i class="layui-icon">&#xe615;</i></button>
	 		
	 	</div>
	 </form>
      <xblock>
        <button class="layui-btn" id="btnNew" type="button">新增</button>
        <button class="layui-btn  " id="btnxg" type="button" >修改</button>
        <button class="layui-btn  " id="btncx" type="button" >查询</button>
        <span class="x-right" style="line-height:40px">共有数据：88 条</span>
      </xblock>
      <table class="layui-table">
        <thead>
          <tr>
            <th>
              <div class="layui-unselect header layui-form-checkbox" lay-skin="primary"><i class="layui-icon">&#xe605;</i></div>
            </th>
            <th>人员姓名</th>
           <th>联系电话</th>
           <th>工作地点</th>
           <th>负责的工作范围</th>
           <th>当前职务</th>
           <th>学历</th>
           <th>身份证</th>
           <th>备注</th>
           <th>删除</th></tr>
        </thead>
        <tbody>
          <tr>
            <td>
              <div class="layui-unselect layui-form-checkbox" lay-skin="primary" data-id='2'><i class="layui-icon">&#xe605;</i></div>
            </td>
            <td>王芳</td>
            <td>13678539324</td>
            <td>天津</td>
            <td>电厂东一区</td>
            <td>巡检员</td>
            <td>本科</td>
            <td>362352199812037328</td>
            <td>外部人员</td>
            <td class="td-manage">
              <a title="删除" onclick="member_del(this,'要删除的id')" href="javascript:;">
                <i class="layui-icon">&#xe640;</i>
              </a>
            </td>
          </tr>
		  <tr>
            <td>
              <div class="layui-unselect layui-form-checkbox" lay-skin="primary" data-id='2'><i class="layui-icon">&#xe605;</i></div>
            </td>
            <td>张明</td>
            <td>13675398124</td>
            <td>北京</td>
            <td>电厂总区</td>
            <td>会计</td>
            <td>研究生</td>
            <td>373352199507317526</td>
            <td>外部人员</td>
            <td class="td-manage">
              <a title="删除" onclick="member_del(this,'要删除的id')" href="javascript:;">
                <i class="layui-icon">&#xe640;</i>
              </a>
            </td>
          </tr>
		  <tr>
		    <td>
		      <div class="layui-unselect layui-form-checkbox" lay-skin="primary" data-id='2'><i class="layui-icon">&#xe605;</i></div>
		    </td>
		    <td>赵亮</td>
		    <td>19877339847</td>
		    <td>济南</td>
		    <td>电厂西一区</td>
		    <td>电路检修工</td>
		    <td>本科</td>
		    <td>373427199703083912</td>
		    <td>外部人员</td>
		    <td class="td-manage">
		      <a title="删除" onclick="member_del(this,'要删除的id')" href="javascript:;">
		        <i class="layui-icon">&#xe640;</i>
		      </a>
		    </td>
		  </tr>
        </tbody>
      </table>
      <div class="page">
        <div>
          <a class="prev" href="">&lt;&lt;</a>
          <a class="num" href="">1</a>
          <span class="current">2</span>
          <a class="num" href="">3</a>
          <a class="num" href="">35</a>
          <a class="next" href="">&gt;&gt;</a>
        </div>
      </div>

    </div>
    <script>
      layui.use('laydate', function(){
        var laydate = layui.laydate;
        
        //执行一个laydate实例
        laydate.render({
          elem: '#start' //指定元素
        });

        //执行一个laydate实例
        laydate.render({
          elem: '#end' //指定元素
        });
      });


      /*用户-删除*/
      function member_del(obj,id){
          layer.confirm('确认要删除吗？',function(index){
              //发异步删除数据
              $(obj).parents("tr").remove();
              layer.msg('已删除!',{icon:1,time:1000});
          });
      }
	</script>	


   
  </body>

</html>